package com.changgou.seckill.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wz
 * @company 公司
 * @create 2020-04-20 11:11
 */
@Configuration
public class RabbitMQConfig {

    public static final String SECKILL_ORDER_QUUEU="seckill_order";

    @Bean
    public Queue queue(){
        return new Queue(SECKILL_ORDER_QUUEU,true);//开启队列持久化
    }

}
